StoreKeeper\WooCommerce\B2C\Tools\Attributes B

Total Complexity 77
Dependencies 17
Dependents 8
Total lines 622
Lines of code 414
Logical lines of code 176
Comment lines 91
Methods 26
Properties 0

Methods 26

Method Rating Maintainability Complexity Lines of code
updateAttribute()
A
47 10 37
getProductAttributes()
A
49 7 31
getProductAttributeOptionsMap()
S
55 6 20
updateAttributeAndOptionFromContentVar()
S
49 5 34
ensureAttributeOptions()
S
55 5 21
setAttributeOptionImage()
S
61 5 12
updateAttributeOption()
S
48 3 40
createWooCommerceAttributeName()
S
59 4 14
getAttributeOptionTermIdByAttributeOptionId()
S
54 3 21
getOptionOrder()
S
57 3 17
getProductAttributesAtIndex()
S
63 3 11
ensureAttribute()
S
57 2 18
unsetAttributeOptionImage()
S
72 3 5
getAttributeBySlug()
S
60 2 14
throwExceptionArray()
S
62 2 12
registerAttributeTemporary()
S
55 1 21
getAttributeOptionTermId()
S
57 1 20
getGenericAttributes()
S
59 1 16
sanitizeOptionSlug()
S
66 2 8
getGenericAttributeOptionsMap()
S
67 2 8
getDefaultType()
S
72 2 6
ensureAttributeAndOptions()
S
76 1 4
getAllAttributes()
S
72 1 6
getAttribute()
S
66 1 9
getAttributesWithOptionsMap()
S
72 1 6
updateAttributeOptionOrder()
S
79 1 3